<template>
  <view class="game-icon" :class="type">
    <text class="icon-text">{{iconText}}</text>
  </view>
</template>

<script>
export default {
  props: {
    type: {
      type: String,
      required: true
    }
  },
  computed: {
    iconText() {
      const icons = {
        sheep: '🐑',
        wolf: '🐺',
        carrot: '🥕',
        house: '🏠',
        tree: '🌲',
        grass: '🌿'
      }
      return icons[this.type] || '❓'
    }
  }
}
</script>

<style lang="less">
.game-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  
  .icon-text {
    font-size: 40px;
  }
}
</style> 